<template>
<uni-shadow-root class="partials-productList-simpleProductList"><template name="simpleProductList">
<block v-if="relateBean.length!=0">
    <view class="detail_list_mode1" style="background:  #eeeeee;">
      <view v-for="(item,index) in (relateBean)" :key="item.index" class="mode1_items" @click="tolinkUrl" :data-info="item" style="border-right: 10px solid #eeeeee;"> 
        <view class="img_block">
            <image mode="aspectFill" :src="(item.imagePath)+'?x-oss-process=style/preview'"></image>
            <view class="product_jifen_block" v-if="item.needJifen">需消耗
              <text class="product_jifen_text" :style="'color: '+(defaultColor)+';'">{{item.needJifen}}积分</text>
            </view>
            <view class="sold_out_block" v-if="item.stock<=0">售罄</view>
        </view>
        <view class="center">{{item.name}}</view>
        <view class="NewBox">
          <component-price-group :data="item"></component-price-group>
          <image src="https://image1.sansancloud.com/xianhua/2019_12/17/10/48/6_202.jpg?x-oss-process=style/preview_120" v-if="jsonData.showCard==1" @click.stop.prevent="readyAddCar" :data-product="item"></image> 
        </view>
      </view>
    </view>
</block>
<block v-if="relateBean.length==0">
    <view class="noproduct">
      <image mode="widthFix" src="https://image1.sansancloud.com/xianhua/2019_12/16/15/54/55_950.jpg?x-oss-process=style/preview_120"></image>
      <text>没有相关商品</text>
    </view>
</block>
</template></uni-shadow-root>
</template>

<script>

global['__wxRoute'] = 'partials/productList/simpleProductList'

Component({})

export default global['__wxComponents']['partials/productList/simpleProductList']
</script>
<style platform="mp-weixin">

</style>